//
//  SCTool.h
//  Scalper
//
//  Created by 王云 on 2017/9/14.
//  Copyright © 2017年 WY. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SCTool : NSObject


//警告
+ (void)showAlerts:(NSString *)str;
//警告2
+ (void)showAlerts:(NSString *)str Ok:(void (^)(id alerts))Ok;
/** 提示 */
+ (void)showAlerts:(NSString *)str Ok:(void (^)(id alerts))Ok Cancel:(void (^)(id alerts))Cancel;
/** 提示 */
+ (void)showAlerts:(NSString *)title msg:(NSString *)msg Ok:(void (^)(id alerts))Ok Cancel:(void (^)(id alerts))Cancel;

/** 提示 */
+ (void)showAlerts:(NSString *)title
               msg:(NSString *)msg
                Ok:(void (^)(id alerts))Ok
           okTitle:(NSString *)okTitle
            cancel:(void (^)(id alerts))cancel
       cancelTitle:(NSString *)cancelTitle;


/** 输入框  单个 按钮*/
+ (void)showAlerts:(NSString *)title
             input:(void (^)(UITextField *textField))tf
           okTitle:(NSString *)okTitle
                Ok:(void (^)(NSString *str))Ok;
/** 输入框  多个*/
+ (void)showAlerts:(NSString *)str list:(NSArray *)list dong:(void (^)(NSInteger tag))Ok;
;





#pragma mark - hub
+ (void)hideHUD;
+ (void)showLoading:(NSString*)message;
+ (void)showSuccess:(NSString *)success;
+ (void)showError:(NSString *)error;
+ (void)showInfo:(NSString *)message;
+ (void)showMessage:(NSString *)message;


+ (void)loginVc:(UIViewController *)vc;

//调app系统设置
+ (void)showSetting;

+ (void)openPhoneOrUI;

+ (void)currentVersion:(void (^)(BOOL isNew))isNewVersion;

+ (void)checkAppUpdate;
@end
